#ifndef BINARYBUFFER_C_
#define BINARYBUFFER_C_

#ifndef PROJECT_C_
#include "project.h"
#endif

extern F_FILE MakeEmpty(F_FILE);
extern F_FILE Find(const char*,F_FILE);
extern F_FILE FindMin(F_FILE);
extern F_FILE FindMax(F_FILE);
extern F_FILE create_node(const char*,long,int);
extern F_FILE Insert(const char*,long,int,F_HASH);
extern F_FILE Delete(const char*,F_FILE);

#ifdef TEST_DELETE_LEAST_BUFFER
	extern char * Find_Delete_LeastBuf_Proxy(F_FILE*,double);
#else
	extern u_int64_t Find_Delete_LeastBuf_Proxy(F_HASH,double);
#endif

extern F_FILE Find_Delete_LeastBuf(F_FILE,double);
extern void file_node_invalid(F_FILE,time_t);
extern void free_ffile(F_FILE);
extern void free_fbuf(F_BUF);
F_BUF replace_fbuf_strdup(F_BUF);

extern void show_innerfix();

#endif